<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:each="li : ${list}">
        <div th:text="${li.id}"></div>
        <div th:text="${li.name}"></div>
    </div>
  </div>

</body>
</html>